<h1>Articles</h1>
<table class="table table-striped">
  <thead>
    <tr>
      <th>Name</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <% @articles.each do |article| %>
      <tr>
        <td><%= article.name %></td>
        <td>
          <%= link_to 'Edit', kuztuscms.edit_article_path(article), :class => 'btn btn-mini' %>
          <%= link_to 'Destroy', kuztuscms.article_path(article), :method => :delete, :confirm => 'Are you sure?', :class => 'btn btn-mini btn-danger' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= link_to 'New', kuztuscms.new_article_path, :class => 'btn btn-primary' %>
